“/”应用程序中的服务器错误。

路径中具有非法字符。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 路径中具有非法字符。

源错误:


行 1164:    {
行 1165:        string urla = url("id"); // 纭繚url鍑芥暟杩斿洖瀛楃涓?
行 1166:        string fileNamenoext = Path.GetFileNameWithoutExtension(urla);  //鏂囦欢鍚嶅幓鎺夊悗鏈€
行 1167:        string fileName = Path.GetFileName(urla);  //鏂囦欢鍚嶄繚鐣欏悗缂€
行 1168:        string extension = Path.GetExtension(urla); //鍚庣紑鍚?

源文件: e:\www\bx1.wskmn.com\index.aspx    行: 1166

堆栈跟踪:


[ArgumentException: 路径中具有非法字符。]
   System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) +12791854
   System.IO.Path.GetFileName(String path) +21
   System.IO.Path.GetFileNameWithoutExtension(String path) +13
   ASP.index_aspx.GetRightPart() in e:\www\bx1.wskmn.com\index.aspx:1166
   ASP.index_aspx.get_types() in e:\www\bx1.wskmn.com\index.aspx:777
   ASP.<get_wz_line>d__3a.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:614
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<replace_jz>d__72.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:857
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<sttr>d__1e.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:497
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<Site>d__9.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:262
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<getsource>d__4.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:235
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<PageLoadAsync>d__0.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:189
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ExecuteTasksAsync>d__3.MoveNext() +363
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ProcessRequestAsync>d__554.MoveNext() +876


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0